how to determine the degree of a polynomial